/**
 * (C)2013 Exlu Corporation. All rights reserved.
 * 文件名 : cn.exlu.wea.tpk.email.EmailConnection.java
 * 注意事項   :
 */
package cn.exlu.coco.core.server.email;

import javax.mail.MessagingException;
import javax.mail.Session;

/**
 * @author Mark 
 * @version 1.0.1
 * 2013-2-1
 * EmailConnection.java
 */
public class EmailConnection {
    private Session session;
    EmailConnection(Session session){
        this.session=session;
    }
    
    public final EmailTransport createEmailTransport(String protocol) throws MessagingException{
        return new EmailTransport(session,protocol);
    }

}
